package com.cgq.pro.dao.impl;

import java.util.List;

import org.springframework.stereotype.Repository;

import com.cgq.base.dao.impl.BaseDaoImpl;
import com.cgq.pro.dao.RegionDao;
import com.cgq.pro.entity.Region;

@Repository
public class RegionDaoImpl extends BaseDaoImpl<Region> implements RegionDao {

	public void deleteAll() {
		String hql="delete from Region";
		hibernateTemplate.bulkUpdate(hql);
	}

	public List<Region> findAll() {
		String hql="from Region";
		return hibernateTemplate.find(hql);
	}

}
